//
//  GBInterMaster_APPLogic.h
//  NetworkTest
//
//  Created by xiaosi on 16/7/26.
//  Copyright © 2016年 xiaosi. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "GCDAsyncSocket.h"
#import "GBInterMaster_Bean_UserInfo.h"
#import "GBInterMaster_Launcher.h"
#import "GBInterMaster_NetData.h"
#import "GBInterMaster_LogicLauncher.h"
#import "GBInterMaster_PackUtil.h"
#import "GBInterMaster_Bean_DeviceOperatorInfo.h"

@class GBInterMaster_Launcher;
@interface GBInterMaster_APPLogic : NSObject

/* 连接注册 */
+ (int) connRegister:(GBInterMaster_Launcher*)service;
/* 连接注册反馈 */
+ (int) responseConnRegister:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 用户注册（获取验证码）*/
+ (int) requestUserRegisterVegister:(int)msgNumber withAccount:(NSString*)account withService:(GBInterMaster_Launcher*)service;
/* 用户注册反馈（获取验证码）*/
+ (int) responseUserRegisterVegister:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 用户注册 */
+ (int) requestUserRegister:(int)msgNumber withPassword:(NSString*)password withCheckCode:(NSString*)checkCode withService:(GBInterMaster_Launcher*)service;
/* 用户注册反馈 */
+ (int) responseUserRegister:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 忘记密码（获取校验码）*/
+ (int) requestUserForgetPwdVegister:(int)msgNumber withAccount:(NSString*)account withService:(GBInterMaster_Launcher*)service;
/* 忘记密码反馈 （获取校验码） */
+ (int) responseUserForgetPwdVegister:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 忘记密码 */
+ (int) requestUserForgetPwd:(int)msgNumber  withCheckCode:(NSString*)checkCode withService:(GBInterMaster_Launcher*)service;
/* 忘记密码反馈 */
+ (int) responseUserForgetPwd:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 忘记密码（设置新密码） */
+ (int) requestUserNewPwd:(int)msgNumber withPassword:(NSString*)password withService:(GBInterMaster_Launcher*)service;
/* 忘记密码反馈（设置新密码） */
+ (int) responseUserNewPwd:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 用户登录 */
+ (int) requestLogin:(int)msgNumber withUserInfo:(GBInterMaster_Bean_UserInfo*)user withService:(GBInterMaster_Launcher*)service;
/* 用户登录反馈 */
+ (int) responseLogin:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 修改密码 */
+ (int) requestUpdatePwd:(int)msgNumber withOldPassword:(NSString*)oldPassword withNewPassword:(NSString*)newPassword withService:(GBInterMaster_Launcher*)service;
/* 修改密码反馈 */
+ (int) responseUpdatePwd:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 所有者认证 */
+ (int) requestAcceptPossessor:(int)msgNumber withDeviceKey:(NSString*)deviceKey withService:(GBInterMaster_Launcher*)service;
/* 所有者认证反馈 */
+ (int) responseAcceptPossessor:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 修改设备信息 */
+ (int) requestDeviceRename:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withDeviceName:(NSString*)deviceName withService:(GBInterMaster_Launcher*)service;
/* 修改设备信息反馈 */
+ (int) responseDeviceRename:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 获取设备列表 */
+ (int) requestDeviceList:(int)msgNumber withService:(GBInterMaster_Launcher*)service;
/* 获取设备列表反馈 */
+ (int) responseDeviceList:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 获取设备使用者列表 */
+ (int) requestDeviceUserList:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 获取设备使用者列表反馈 */
+ (int) responseDeviceUserList:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 解除绑定 */
+ (int) requestRelieveDevice:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 解除绑定反馈 */
+ (int) responseRelieveDevice:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 添加使用者 */
+ (int) requestAddDeviceUser:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withUserAccount:(NSString*)userAccount withUserAlias:(NSString*)userAlias withService:(GBInterMaster_Launcher*)service;
/* 添加使用者 反馈 */
+ (int) responseAddDeviceUser:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;
/* 添加使用者 推送 */
+ (int) pushAddDeviceUser:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;

/* 删除使用者 */
+ (int) requestDeleteDeviceUser:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withUserAccount:(NSString*)userAccount  withService:(GBInterMaster_Launcher*)service;
/* 删除使用者反馈 */
+ (int) responseDeleteDeviceUser:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;
/* 删除使用者反馈 推送 */
+ (int) pushDeleteDeviceUser:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 编辑使用者 */
+ (int) requestEditDeviceUser:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withUserAccount:(NSString*)userAccount withUserAlias:(NSString*)userAlias withService:(GBInterMaster_Launcher*)service;
/* 编辑使用者 反馈 */
+ (int) responseEditDeviceUser:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 所有者转移 */
+ (int) requestDeviceOwnChange:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withUserAccount:(NSString*)userAccount  withService:(GBInterMaster_Launcher*)service;
/* 所有者转移反馈 */
+ (int) responseDeviceOwnChange:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;
/* 所有者转移 推送 */
+ (int) pushDeviceOwnChange:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 用户意见 */
+ (int) requestUserFeedBack:(int)msgNumber withTheme:(NSString*)theme withContent:(NSString*)content withService:(GBInterMaster_Launcher*)service;
/* 用户意见反馈 */
+ (int) responseUserFeedBack:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 获取设备配置 */
+ (int) requestDeviceConfig:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 获取设备配置反馈 */
+ (int) responseDeviceConfig:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 消息同步设置 */
+ (int) requestMsgReceiveMode:(int)msgNumber withDeviceAccount:(NSString*)deviceAccount withMsgMode:(int) msgMode withService:(GBInterMaster_Launcher*)service;
/* 消息同步设置反馈 */
+ (int) responseMsgReceiveMode:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 获取用户操作记录 */
+ (int) requestUserOpes:(int)msgNumber withTag:(int)tag withDeviceAccount:(NSString*)deviceAccount withUserAccount:(NSString*)userAccount  withService:(GBInterMaster_Launcher*)service;
/* 获取用户操作记录反馈 */
+ (int) responseUserOpes:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;

/* 获取设备最新状态 */
+ (int) requestDeviceStatus:(int)msgNumber withDataType:(int)dataType withSubId:(int)subId withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 获取设备最新状态反馈 */
+ (int) responseDeviceStatus:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;

/* 获取设备运行记录 */
+ (int) requestDeviceRuns:(int)msgNumber withDataType:(int)dataType withSubId:(int)subId withTag:(int)tag withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 获取设备运行记录反馈 */
+ (int) responseDeviceRuns:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;


/* 获取时段信息 */
+ (int) requestShowProgramInfo:(int)msgNumber withDataType:(int)dataType withSubId:(int)subId  withDeviceAccount:(NSString*)deviceAccount withService:(GBInterMaster_Launcher*)service;
/* 获取时段信息反馈 */
+ (int) responseShowProgramInfo:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;

/* 获取设备参数 */
+ (int) requestDeviceParam:(int)msgNumber withDataType:(int)dataType withSubId:(int)subId withDeviceAccount:(NSString*)deviceAccount withType:(int)type withService:(GBInterMaster_Launcher*)service;
/* 获取设备参数反馈 */
+ (int) responseDeviceParam:(GBInterMaster_NetData*)netData withService:(GBInterMaster_Launcher*)service;
@end
